<!DOCTYPE html>
<html lang="en-US">
<head>

<title>HTML Examples</title>

<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon" />
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<meta name="Keywords" content="html,css,tutorial,html5,dhtml,css3,xsl,xslt,xhtml,javascript,jquery,asp,ado,net,vbscript,dom,sql,colors,soap,php,rss,authoring,programming,training,learning,quiz,beginner's guide,primer,lessons,school,howto,reference,examples,samples,source code,tags,demos,tips,links,FAQ,tag list,forms,frames,color table,w3c,cascading style sheets,active server pages,dynamic html,internet,database,development,Web building,Webmaster,html guide" />

<meta name="Description" content="Free HTML XHTML CSS JavaScript jQuery XML DOM XSL XSLT RSS AJAX ASP .NET PHP SQL tutorials, references, examples for web building." />

<script type="text/javascript">
<!--
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
//-->
</script>
<script type="text/javascript">
<!--
function searchfield_focus(obj)
{
obj.style.color=""
obj.style.fontStyle=""
if (obj.value=="Search w3schools.com")
	{
	obj.value=""
	}
}

var pageTracker = _gat._getTracker("UA-3855518-1");
pageTracker._initData();
pageTracker._trackPageview();

var addr=document.location.href;
function displayError()
{
document.getElementById("err_url").value=addr;
document.getElementById("err_form").style.display="block";
document.getElementById("err_desc").focus();
hideSent();
}
function hideError()
{
document.getElementById("err_form").style.display="none";
}
function hideSent()
{
document.getElementById("err_sent").style.display="none";
}
function sendErr()
{
var xmlhttp;
var err_url=document.getElementById("err_url").value;
var err_email=document.getElementById("err_email").value;
var err_desc=document.getElementById("err_desc").value;
if (window.XMLHttpRequest)
  {// code for IE7+, Firefox, Chrome, Opera, Safari
  xmlhttp=new XMLHttpRequest();
  }
else
  {// code for IE6, IE5
  xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
  }

xmlhttp.open("POST","/err_sup.asp",true);
xmlhttp.setRequestHeader("Content-type","application/x-www-form-urlencoded");
xmlhttp.send("err_url=" + err_url + "&err_email=" + err_email + "&err_desc=" + escape(err_desc));
hideError();
document.getElementById("err_sent").style.display="block";
}

function click_expandingMenuHeader(obj,sectionName)
{
var x=document.getElementById("cssprop_" + sectionName).parentNode.className;
if (x.indexOf("expandingMenuNotSelected")>-1)
	{
	x=x.replace("expandingMenuNotSelected","expandingMenuSelected");
	document.getElementById("cssprop_" + sectionName).parentNode.className=x;
	document.getElementById("cssprop_" + sectionName).style.display="block";
	}
else
	{
	x=x.replace("expandingMenuSelected","expandingMenuNotSelected");
	document.getElementById("cssprop_" + sectionName).parentNode.className=x;
	document.getElementById("cssprop_" + sectionName).style.display="none";
	}
}

//-->
</script>
<!--[if lt IE 7]>
<style>
#leftcolumn{margin-left:0}
</style>
<![endif]-->
<link rel="stylesheet" type="text/css" href="/stdtheme.css" />
</head>
<body>


<!-- effective measure code -->
<script type="text/javascript">
  (function() {
    var em = document.createElement('script'); em.type = 'text/javascript'; em.async = true;
    em.src = ('https:' == document.location.protocol ? 'https://me-ssl' : 'http://me-cdn') + '.effectivemeasure.net/em.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(em, s);
  })();
</script>
<noscript>
<img src="//me.effectivemeasure.net/em_image" alt="" style="position:absolute; left:-5px;" />
</noscript>
<!-- end effective measure code -->

<div style="position:relative;width:100%;margin-top:0px;margin-bottom:0px;">
<a id="top"></a>
<div style="width:960px;margin-top:5px;margin-left:auto;margin-right:auto">
<div style="width:960px;height:74px;margin:0;padding:0;">
<div style="width:340px;text-align:left;float:left;">
	<a href="http://www.w3schools.com"><img width="336" height="69" src="/images/w3schoolslogo.gif" alt="W3Schools.com" style="border:0;margin-top:5px;" /></a>
</div>

<div style="width:300px;float:right;text-align:right;margin-top:20px;margin-right:14px;margin-bottom:5px;">
<div id="google_translate_element" style="display:none"></div>
<div id="translate_link" style="margin-bottom:14px">
<a href="#" class="topnav"
onclick="document.getElementById('google_translate_element').style.display='inline';document.getElementById('translate_link').style.display='none';return false;">
TRANSLATE
</a>
</div>
	<form style="font-size:11px;" method="get" name="searchform" action="http://www.google.com/search" target="_blank">
    <input type="hidden" name="sitesearch" value="www.w3schools.com" />
    <input onfocus="searchfield_focus(this)" style="width:150px;color:#808080;font-style:italic;margin:0;"
    type="text" name="as_q" size="20" value="Search w3schools.com" /><input type="submit" style="margin:0;" value="Search" title="Search" />
	</form>
</div>
</div>
<div id="topnav" style="clear:both;width:960px;height:25px;">
<div style="float:left;width:400px;word-spacing:12px;font-size:90%;padding-left:15px;padding-top:6px;white-space:nowrap;text-align:left;">
	<a class="topnav" href="/default.asp" target="_top">HOME </a>
	<a class="topnav" href="/html/default.asp" target="_top">HTML </a>
	<a class="topnav" href="/css/default.asp" target="_top">CSS </a>
	<a class="topnav" href="/xml/default.asp" target="_top">XML </a>
	<a class="topnav" href="/js/default.asp" target="_top">JAVASCRIPT </a>
	<a class="topnav" href="/asp/default.asp" target="_top">ASP </a>
	<a class="topnav" href="/php/default.asp" target="_top">PHP </a>
	<a class="topnav" href="/sql/default.asp" target="_top">SQL </a>
	<a class="topnav" href="/sitemap/default.asp" target="_top">MORE...</a>
</div>
<div style="float:right;width:280px;word-spacing:6px;font-size:80%;padding-right:13px;padding-top:7px;color:#888888;white-space:nowrap;text-align:right;">
	<a class="topnav" href="/sitemap/default.asp#references" target="_top">REFERENCES</a> |
	<a class="topnav" href="/sitemap/default.asp#examples" target="_top">EXAMPLES</a> |
	<a class="topnav" href="/forum/default.asp" target="_top">FORUM</a> |
	<a class="topnav" href="/about/default.asp" target="_top">ABOUT</a>
</div>
</div>

<div style="width:960px;height:94px;position:relative;margin-left:auto;margin-right:auto;margin:0px;padding:0px;overflow:hidden">
<script type='text/javascript' src='http://partner.googleadservices.com/gampad/google_service.js'>
</script>
<script type='text/javascript'>
GS_googleAddAdSenseService("ca-pub-3440800076797949");
GS_googleEnableAllServices();
</script>
<script type='text/javascript'>

GA_googleAddSlot("ca-pub-3440800076797949", "MainLeaderboard");
GA_googleAddSlot("ca-pub-3440800076797949", "SmallPS");
GA_googleAddSlot("ca-pub-3440800076797949", "LargePS");
GA_googleAddSlot("ca-pub-3440800076797949", "BottomBanner");

GA_googleAddSlot("ca-pub-3440800076797949", "TopRectangle");
</script>
<script type='text/javascript'>
GA_googleFetchAds();
</script>
<!-- TopRectangle -->
<script type='text/javascript'>
GA_googleFillSlot("TopRectangle");
</script>
<div style="width:728px;height:90px;position:absolute;right:0px;top:0px;margin:0;padding:0;overflow:hidden;">

<!-- MainLeaderboard -->
<script type='text/javascript'>
GA_googleFillSlot("MainLeaderboard");
</script>

</div></div>
<div style="width:960px;padding:0px;margin:0px;">
<div id="leftcolumn" style="width:170px;margin:0;padding:0;margin-top:5px;float:left;"><h2 class="left"><span class="left_h2">HTML</span> Basic</h2>
<a target="_top" href="default.asp" >HTML HOME</a><br />
<a target="_top" href="html_intro.asp" >HTML Introduction</a><br />
<a target="_top" href="html_getstarted.asp" >HTML Get Started</a><br />
<a target="_top" href="html_primary.asp" >HTML Basic</a><br />
<a target="_top" href="html_elements.asp" >HTML Elements</a><br />
<a target="_top" href="html_attributes.asp" >HTML Attributes</a><br />
<a target="_top" href="html_headings.asp" >HTML Headings</a><br />
<a target="_top" href="html_paragraphs.asp" >HTML Paragraphs</a><br />
<a target="_top" href="html_formatting.asp" >HTML Formatting</a><br />
<a target="_top" href="html_fonts.asp" >HTML Fonts</a><br />
<a target="_top" href="html_styles.asp" >HTML Styles</a><br />
<a target="_top" href="html_links.asp" >HTML Links</a><br />
<a target="_top" href="html_images.asp" >HTML Images</a><br />
<a target="_top" href="html_tables.asp" >HTML Tables</a><br />
<a target="_top" href="html_lists.asp" >HTML Lists</a><br />
<a target="_top" href="html_forms.asp" >HTML Forms</a><br />
<a target="_top" href="html_frames.asp" >HTML Frames</a><br />
<a target="_top" href="html_iframe.asp" >HTML Iframes</a><br />
<a target="_top" href="html_colors.asp" >HTML Colors</a><br />
<a target="_top" href="html_colornames.asp" >HTML Colornames</a><br />
<a target="_top" href="html_colorvalues.asp" >HTML Colorvalues</a><br />
<a target="_top" href="html_quick.asp" >HTML Quick List</a><br />
<br />
<h2 class="left"><span class="left_h2">HTML</span> Advanced</h2>
<a target="_top" href="html_layout.asp" >HTML Layout</a><br />
<a target="_top" href="html_doctype.asp" >HTML Doctypes</a><br />
<a target="_top" href="html_css.asp" >HTML CSS</a><br />
<a target="_top" href="html_head.asp" >HTML Head</a><br />
<a target="_top" href="html_meta.asp" >HTML Meta</a><br />
<a target="_top" href="html_scripts.asp" >HTML Scripts</a><br />
<a target="_top" href="html_entities.asp" >HTML Entities</a><br />
<a target="_top" href="html_url.asp" >HTML URLs</a><br />
<a target="_top" href="html_urlencode.asp" >HTML URL Encode</a><br />
<a target="_top" href="html_webserver.asp" >HTML Webserver</a><br />
<a target="_top" href="html_summary.asp" >HTML Summary</a><br />
<br />
<h2 class="left"><span class="left_h2">HTML</span> Media</h2>
<a target="_top" href="html_media.asp" >HTML Media</a><br />
<a target="_top" href="html_sounds.asp" >HTML
Audio</a><br />
<a target="_top" href="html_object.asp" >HTML Object</a><br />
<a target="_top" href="html_videos.asp" >HTML Video</a><br />
<a target="_top" href="html_youtube.asp" >HTML YouTube</a><br />
<a target="_top" href="html_mediatags.asp" >HTML Media Tags</a><br />
<br />
<h2 class="left"><span class="left_h2">HTML</span> XHTML</h2>
<a target="_top" href="html_xhtml.asp" >XHTML Intro</a><br />
<a target="_top" href="html_xhtml_syntax.asp" >XHTML Syntax</a><br />
<a target="_top" href="html_xhtml_dtd.asp" >XHTML Doctype</a><br />
<br />
<h2 class="left"><span class="left_h2">HTML</span> Examples</h2>
<a target="_top" href="html_examples.asp" style='font-weight:bold;'>HTML Examples</a><br />
<a target="_top" href="html_quiz.asp" >HTML Quiz</a><br />
<a target="_top" href="html_exam.asp" >HTML Certificate</a><br />
<br />
<h2 class="left"><span class="left_h2">HTML</span> References</h2>
<a target="_top" href="/tags/default.asp">HTML Tag List</a><br />
<a target="_top" href="/tags/ref_standardattributes.asp">HTML Attributes</a><br />
<a target="_top" href="/tags/ref_eventattributes.asp">HTML Events</a><br />
<a target="_top" href="/tags/ref_colornames.asp">HTML Colornames</a><br />
<a target="_top" href="/tags/ref_colorpicker.asp">HTML Colorpicker</a><br />
<a target="_top" href="/tags/ref_charactersets.asp">HTML Character Sets</a><br />
<a target="_top" href="/tags/ref_ascii.asp">HTML ASCII</a><br />
<a target="_top" href="/tags/ref_entities.asp">HTML ISO-8859-1</a><br />
<a target="_top" href="/tags/ref_symbols.asp">HTML Symbols</a><br />
<a target="_top" href="/tags/ref_urlencode.asp">HTML URL Encode</a><br />
<a target="_top" href="/tags/ref_language_codes.asp">HTML Lang Codes</a><br />
<a target="_top" href="/tags/ref_httpmessages.asp">HTML Status Codes</a><br />
<br />
<h2 class="left"><span class="left_h2">HTML5</span></h2>
<a target="_top" href="/html5/default.asp">HTML5 Tutorial</a><br />
<a target="_top" href="/html5/html5_reference.asp">HTML5 Reference</a><br />
<br />
<a target="_top" href="/cn/html/default.asp"><img src="chinese.jpg" alt="Chinese" style="margin-right:3px;position:relative;top:2px;" />Chinese Version</a><br /></div>
<div style="width:634px;margin:0px;padding:0px;background-color:#ffffff;color:#000000;padding-bottom:8px;padding-right:5px;padding-top:4px;float:left;">

<h1>HTML <span class="color_h1">Examples</span></h1>
<div class="chapter">
<div class="prev"><a class="chapter" href="html_xhtml_dtd.asp">&laquo; Previous</a></div>
<div class="next"><a class="chapter" href="html_quiz.asp">Next Chapter &raquo;</a></div>
</div>
<hr />
<p><b>HTML Basic</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_intro">A very simple HTML document</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_headers">HTML headings</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_paragraphs1">HTML paragraphs</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_basic_link">HTML links</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_basic_img">HTML images</a>
<p><a class="example" href="html_primary.asp">Examples explained</a>
</p>
<hr />

<p><b>HTML Headings</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_headers">HTML headings</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_comment">Insert comments in the HTML source code</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_hr">Insert horizontal lines</a>
<p><a class="example" href="html_headings.asp">Examples explained</a>
</p>
<hr />

<p><b>HTML Paragraphs</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_paragraphs1">HTML paragraphs</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_paragraphs2">More paragraphs</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_paragraphs">The use of line breaks</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_poem">Poem problems (some problems with HTML formatting)</a>
<p><a class="example" href="html_paragraphs.asp">Examples explained</a>
</p>
<hr />

<p><b>HTML Text Formatting</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_formattingch">Text formatting</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_pre">Preformatted text (how to control line breaks and spaces)</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_computeroutput">Different computer-output tags</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_address">Insert contact information</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_abbr">Abbreviations and acronyms</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_bdo">Text direction</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_q">Long and short quotations</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_del">How to mark deleted and inserted text</a>
</p>
<p><a class="example" href="html_formatting.asp">Examples explained</a></p>
<hr />

<p><b>HTML Styles</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_styles">Style HTML elements</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_bodybgstyle">Style background color</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_newfont">Style font, color, and size</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_headeralign">Style alignment of text</a>
</p>
<p><a class="example" href="html_styles.asp">Examples explained</a></p>
<hr />

<p><b>HTML Links</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_links">How to create hyperlinks</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_imglink">Use an image as a link</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_link_target">Open link in a new browser window</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_link_locations">Jump to another part of a document (on the same page)</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_frame_getfree">Break out of a frame</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_mailto">How to link to a mail message (will only work if you have mail installed)</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_mailto2">Another mailto link</a></p>
<p><a class="example" href="html_links.asp">Examples explained</a>
</p>
<hr />

<p><b>HTML Images</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_images">Insert images</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_images2">Insert images from another folder or another server</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_image_align">Aligning images</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_image_float">Let the image float to the left/right of a paragraph</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_imglink">Make a hyperlink of an image</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_areamap">Create an image-map, with clickable regions</a>
</p>
<p><a class="example" href="html_images.asp">Examples explained</a></p>
<hr />

<p><b>HTML Tables</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_tables">Simple tables</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_table_borders">Different table borders</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_tables3">Tables without borders</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_table_headers">Table headers</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_tables2">Table with a caption</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_table_span">Table cells that span more than one row/column</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_table_elements">Tags inside a table</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_table_cellpadding">Cell padding (control the white space between cell content and the borders</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_table_cellspacing">Cell spacing (control the distance between cells)</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_table_frame">The frame attribute</a>
</p>
<p><a class="example" href="html_tables.asp">Examples explained</a></p>
<hr />

<p><b>HTML Lists</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_lists4">An unordered list</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_lists">An ordered list</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_lists_ordered">Different types of ordered lists</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_lists_unordered">Different types of unordered Lists</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_lists2">Nested list</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_nestedlists2">Nested list 2</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_lists3">Definition list</a>
</p>
<p><a class="example" href="html_lists.asp">Examples explained</a></p>
<hr />

<p><b>HTML Forms and Input</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_input">Create text fields</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_inputpassword">Create
password field</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_checkbox">Checkboxes</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_radio">Radio buttons</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_select2">Simple drop-down
list</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_select3">Drop-down list with
a pre-selected value</a><br />
<a target="_blank" href="showit.asp?filename=tryhtml_textarea">Textarea (a multi-line text input field)</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_button">Create a button</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_legend">Draw a border around
form-data</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_form_submit">Form with text
fields and a submit button</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_form_checkbox">Form with checkboxes and a submit button</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_form_radio">Form with radiobuttons and a submit button</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_form_mail">Send e-mail from a form</a>
</p>
<p><a class="example" href="html_forms.asp">Examples explained</a></p>
<hr />


<p><b>HTML Frames</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_frame_cols">A vertical
frameset</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_frame_rows">A horizontal
frameset</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_noframes">How to use the &lt;noframes&gt; tag</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_frame_mix">How to mix a frameset in rows and columns</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_frame_noresize">Frameset with noresize=&quot;noresize&quot;</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_frame_navigation">How to create a navigation frame</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_iframe">Inline frame (a frame inside an HTML page)</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_frame_jump">Jump to a specified section within a frame</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_frame_navigation2">Jump to a specified section with frame navigation</a>
</p>
<p><a class="example" href="html_frames.asp">Examples explained</a></p>
<hr />

<p><b>HTML and Styles</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_style">Using styles in HTML</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_linknoline">Link that is not underlined</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_link">Link to an external style sheet</a>
</p>
<p><a class="example" href="html_css.asp">Examples explained</a></p>
<hr />

<p><b>HTML head Elements</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_title">Specify a title for a
document</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_base">One target for all links on a page</a>
</p>
<p><a class="example" href="html_head.asp">Examples explained</a></p>
<hr />

<p><b>HTML &lt;meta&gt; Tags</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_meta">Document description</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_keywords">Document keywords</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_redirect">Redirect a user</a>
</p>
<p><a class="example" href="html_meta.asp">Examples explained</a></p>
<hr />

<p><b>HTML Scripts</b></p>
<p>
<a target="_blank" href="tryit.asp?filename=tryhtml_script">Insert a script</a><br />
<a target="_blank" href="tryit.asp?filename=tryhtml_noscript">Use of the &lt;noscript&gt;
tag</a>
</p>
<p><a class="example" href="html_scripts.asp">Examples explained</a></p>

<br />
<div class="chapter">
<div class="prev"><a class="chapter" href="html_xhtml_dtd.asp">&laquo; Previous</a></div>
<div class="next"><a class="chapter" href="html_quiz.asp">Next Chapter &raquo;</a></div>
</div>

<hr />

<!-- **** SPOTLIGHTS 1 **** -->
<!-- SmallPS -->
<script type='text/javascript'>
GA_googleFillSlot("SmallPS");
</script>
<!-- **** SPOTLIGHTS 2 **** -->
<!-- LargePS -->
<script type='text/javascript'>
GA_googleFillSlot("LargePS");
</script>
<!-- **** SPOTLIGHTS 3 **** -->
<script type="text/javascript"><!--
document.write('<table><tr><td style="width:108px">&nbsp;</td><td>');
google_ad_client = "pub-3440800076797949";
/*txt*/
google_ad_slot = "1699448869";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
<script type="text/javascript">
<!--
document.write("</td></tr></table>");
//-->
</script>

<!-- BottomBanner -->
<script type='text/javascript'>
GA_googleFillSlot("BottomBanner");
</script>


<div id="err_form" style="display:none">
<h2>Your suggestion:</h2>
<p><label for="err_email">Your E-mail (optional):</label> <input type="text" id="err_email" name="err_email" /></p>
<p><label for="err_url">Page address:</label> <input type="text" disabled="disabled" id="err_url" name="err_url" /></p>
<p><label for="err_desc">Description:</label> <textarea name="err_desc" id="err_desc" cols="92" rows="20"></textarea></p>
<p class="submit"><input type="button" value="Submit" onclick="sendErr()" /></p>
<div class="err_close" onclick="hideError()">Close [X]</div>
</div>
<div id="err_sent" style="display:none">
<h2>Thank you for your support.</h2>
<div class="err_close" onclick="hideSent()">Close [X]</div>
</div>

</div>

<div id="rightcolumn" style="width:150px;margin:0px;padding:0px;float:left">
<table>
<tr><th>WEB HOSTING</th></tr>
<tr><td>
<a target="_blank" rel="nofollow" href="http://www.lunarpages.com/id/w3schools/goto/w3schools">Best Web Hosting</a>
</td></tr>
<tr><td>
<a target="_blank" rel="nofollow" href="http://www.eukhost.com">PHP MySQL Hosting</a>
</td></tr>
<tr><td>
<a target="_blank" rel="nofollow" href="http://www.web-hosting-top.com/coupons">Best Hosting Coupons</a>
</td></tr>
<tr><td>
<a target="_blank" rel="nofollow" href="http://www.heartinternet.co.uk/index.shtml">UK Reseller Hosting</a>
</td></tr>
<tr><td>
<a target="_blank" rel="nofollow" href="http://www.webhosting.uk.com/cloud-hosting.php">Cloud Hosting</a>
</td></tr>
<tr><td>
<a target="_blank" rel="nofollow" href="http://www.justhost.com/track/w3schools/textlink">Top Web Hosting</a>
</td></tr>
<tr><td>
<a target="_blank" rel="nofollow" href="http://www.doteasy.com/index.cfm?A=w3text">$7.95/mo SEO Hosting</a>
</td></tr>
</table>

<table>
<tr><th>WEB BUILDING</th></tr>
<tr><td>

<a target="_blank" rel="nofollow" href="http://www.altova.com/ref/?s=w3s_text2&amp;q=xmlspy">XML Editor - Free Trial!</a>

</td></tr>
<tr><td>
<a target="_blank" rel="nofollow" href="http://www.wix.com/start/wfree?utm_campaign=ma_w3schools.com&amp;experiment_id=ma_w3schools.com300builder">FREE Website BUILDER</a>
</td></tr>
<tr><td>
<a target="_blank" rel="nofollow" href="http://www.dreamtemplate.com">Free Website Templates</a>
<a target="_blank" rel="nofollow" href="http://www.templatesold.com">Free WordPress Themes</a>
</td></tr>
</table>

<table>
<tr><th>W3SCHOOLS EXAMS</th></tr>
<tr><td>
<a target="_blank" href="/cert/default.asp">Get Certified in:<br />HTML, CSS, JavaScript, XML, PHP, and ASP</a>
</td></tr>
</table>

<table>
<tr><th>W3SCHOOLS BOOKS</th></tr>
<tr><td>
<a target="_blank" href="/books/default.asp">
New Books:<br />HTML, CSS<br />
JavaScript, and Ajax</a>
</td></tr>
</table>

<table>
<tr><th>STATISTICS</th></tr>
<tr><td>
<a target="_top" href="/browsers/browsers_stats.asp">Browser Statistics</a><br />
<a target="_top" href="/browsers/browsers_os.asp">Browser OS</a><br />
<a target="_top" href="/browsers/browsers_display.asp">Browser Display</a>
</td></tr></table>

<script type="text/javascript">
<!--
function sharethis()
{
txt='<a href="http://www.facebook.com/sharer.php?u='+document.URL+'" target="_blank" title="Facebook">'
txt=txt+'<img src="/images/share_facebook.gif" width="16px" height="16px" style="margin-right:4px" /></a>';
txt=txt+'<a href="http://twitter.com/home?status=Currently reading '+document.URL+'" target="_blank" title="Twitter">';
txt=txt+'<img src="/images/share_twitter.gif" width="16px" height="16px" style="margin-right:4px" /></a>';
txt=txt+'<a href="mailto:?&amp;subject='+document.title+'&amp;body=Take%20a%20look%20at%20this%20page%20at%20W3Schools.com:%20'+document.URL+'" target="_blank" title="E-mail">';
txt=txt+'<img src="/images/share_email.gif" width="16px" height="16px" style="margin-right:4px" /></a>';
txt=txt+'<a href="http://delicious.com/save?v=5&noui&jump=close&url='+document.URL+'&title='+document.title+'" target="_blank" title="Delicious">';
txt=txt+'<img src="/images/share_delicious.gif" width="16px" height="16px" style="margin-right:4px" /></a>';
txt=txt+'<a href="http://www.reddit.com/submit?url='+document.URL+'" target="_blank" title="Reddit">';
txt=txt+'<img src="/images/share_reddit.gif" width="16px" height="16px" style="margin-right:4px" /></a>';
txt=txt+'<a href="http://digg.com/submit?url='+document.URL+'&amp;title='+document.title+'" target="_blank" title="Digg">';
txt=txt+'<img src="/images/share_digg.gif" width="16px" height="16px" style="margin-right:4px" /></a>';
txt=txt+'<a href="http://www.stumbleupon.com/submit?url='+document.URL+'%26title%3D'+document.title+'" target="_blank" title="Stumbleupon">';
txt=txt+'<img src="/images/share_stumbleupon.gif" width="16px" height="16px" /></a>';
document.getElementById("sharethis").innerHTML=txt;
}
//--></script>
<table>
<tr><th>SHARE THIS PAGE</th></tr>
<tr>
<td id="sharethis">
<div style="height:16px">
<a href="#" onclick="sharethis();return false;">Share with &raquo;</a>
</div>
</td>
</tr>
</table>


</div>
</div>
	<br />
</div>
<div style="width:100%;clear:both;margin:0;padding:0;background-color:transparent;background-image:url('/images/gradientbottom.jpg');background-repeat:repeat-x;position:relative;">
<div id="footer" style="width:960px;margin-left:auto;margin-right:auto;height:110px;">
<div style="float:left;width:200px;text-align:left;padding-left:3px;padding-top:11px;"><a href="http://www.w3schools.com">
<img style="border:0" src="/images/w3schoolscom_gray.gif" alt="W3Schools.com" /></a>
</div>
<div style="word-spacing:6px;font-size:80%;padding-right:12px;padding-top:19px;float:right;width:600px;text-align:right;">
		<a href="" onclick="displayError();return false">REPORT ERROR</a> |
		<a href="/default.asp" target="_top">HOME</a> |
		<a href="#top" target="_top">TOP</a> |
		<a href='/html/html_examples.asp?output=print' target="_blank">PRINT</a> |
		<a href="/forum/default.asp" target="_blank">FORUM</a> |
		<a href="/about/default.asp" target="_top">ABOUT</a>
</div>
<div style="padding-top:13px;color:#404040;clear:both;">
		W3Schools is optimized for learning, testing, and training. Examples might be simplified to improve reading and basic understanding.<br />
		Tutorials, references, and examples are constantly reviewed to avoid errors, but we cannot warrant full correctness of all content.<br />
		While using this site, you agree to have read and accepted our
		<a href="/about/about_copyright.asp">terms of use</a> and
		<a href="/about/about_privacy.asp">privacy policy</a>.<br />
		<a href="/about/about_copyright.asp">Copyright 1999-2011</a> by Refsnes Data. All Rights Reserved.
</div>
</div>
</div>
</div>
<script type="text/javascript">
function googleTranslateElementInit() {
  new google.translate.TranslateElement({
    pageLanguage: 'en',
    autoDisplay: false,
    gaTrack: true,
    layout: google.translate.TranslateElement.InlineLayout.SIMPLE
  }, 'google_translate_element');
}
</script><script src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit" type="text/javascript"></script>

</body>
</html>